//
//  BleManage.h
//  ZZBlue
//
//  Created by stonesMonkey on 2017/10/1.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@protocol BleManageDelegate
-(void)UpDevNum:(NSInteger)num;
- (void) centralManagerDidUpdateState:(CBCentralManager *)central;
-(void)BleSendOver;//蓝牙数据发送完毕
-(void)connectSuccess:(NSInteger)index;//连接成功
-(void)Blercvdata:(NSData*)data index:(NSInteger)index ;//接受到数据
@end


@interface BleManage : NSObject


- (BOOL) writeByte:(NSData *) byte index:(int)index time:(int)timevalue;
-(void)connectBle:(NSInteger)index;
@property id<BleManageDelegate> delegate;
-(void)startscan;
-(void)stopscan;
-(BOOL)getisconnect:(NSInteger)index;//是否连接
@property (nonatomic) int LEDANum;//跑马A LED个数
@property (nonatomic) int LEDBNum;//跑马B LED个数

@end
